/*
 * Copyright 2010 bedatadriven
 *
 *    Licensed under the Apache License, Version 2.0 (the "License");
 *    you may not use this file except in compliance with the License.
 *    You may obtain a copy of the License at
 *
 *        http://www.apache.org/licenses/LICENSE-2.0
 *
 *    Unless required by applicable law or agreed to in writing, software
 *    distributed under the License is distributed on an "AS IS" BASIS,
 *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *    See the License for the specific language governing permissions and
 *    limitations under the License.
 */

/**
 * JacobGen generated file --- do not edit
 *
 * (http://www.bigatti.it/projects/jacobgen)
 */
package com.bedatadriven.mso.powerpoint;

import com.bedatadriven.mso.core.MsoHyperlinkType;
import com.bedatadriven.mso.core.MsoTriState;
import com.google.gwt.core.client.JavaScriptObject;

/** Wrapper for PowerPoint.Hyperlink*/
public class Hyperlink extends JavaScriptObject {

	protected Hyperlink() { }
	public native final PpApplication getApplication()/*-{
		return this.Application;
	}-*/;

	public native final Object getParent()/*-{
		return this.Parent;
	}-*/;

	protected native final int _getType()/*-{
		return this.Type;
	}-*/;

	public final MsoHyperlinkType getType(){
		return MsoHyperlinkType.valueOf(_getType());
	}
	public native final String getAddress()/*-{
		return this.Address;
	}-*/;

	public native final void setAddress(String value)/*-{
		this.Address = value;
	}-*/;

	public native final String getSubAddress()/*-{
		return this.SubAddress;
	}-*/;

	public native final void setSubAddress(String value)/*-{
		this.SubAddress = value;
	}-*/;

	public native final void addToFavorites()/*-{
		this.AddToFavorites( );
	}-*/;

	public native final String getEmailSubject()/*-{
		return this.EmailSubject;
	}-*/;

	public native final void setEmailSubject(String value)/*-{
		this.EmailSubject = value;
	}-*/;

	public native final String getScreenTip()/*-{
		return this.ScreenTip;
	}-*/;

	public native final void setScreenTip(String value)/*-{
		this.ScreenTip = value;
	}-*/;

	public native final String getTextToDisplay()/*-{
		return this.TextToDisplay;
	}-*/;

	public native final void setTextToDisplay(String value)/*-{
		this.TextToDisplay = value;
	}-*/;

	protected native final int _getShowAndReturn()/*-{
		return this.ShowAndReturn;
	}-*/;

	public final MsoTriState getShowAndReturn(){
		return MsoTriState.valueOf(_getShowAndReturn());
	}
	protected native final void _setShowAndReturn( int value)/*-{
		this.ShowAndReturn = value;
	}-*/;

	public final void setShowAndReturn(MsoTriState value){
		_setShowAndReturn(value.getValue());
	}
	public native final void follow()/*-{
		this.Follow( );
	}-*/;

	protected native final void _createNewDocument(String fileName,  int editNow,  int overwrite)/*-{
		this.CreateNewDocument( fileName, editNow, overwrite);
	}-*/;

	public final void createNewDocument(String fileName, MsoTriState editNow, MsoTriState overwrite){
		_createNewDocument(fileName, editNow.getValue(), overwrite.getValue());
	}
	public native final void delete()/*-{
		this.Delete( );
	}-*/;

}
